import axios from '~/plugins/axios';

/**
 * 订单列表
 *
 * @param commit
 * @param state
 * @param preload
 */
export const ordersList = function({commit, state}, preload) {
    return axios.get(process.env.baseUrl + '/adminOrder/search', {
        params: preload || {}
    })
};

/**
 * 订单详细
 *
 * @param commit
 * @param state
 * @param preload
 */
export const orderDetail = function({commit, state}, preload) {
    return axios.get(process.env.baseUrl + '/adminOrder/getOrderDetail', {
        params: preload || {}
    })
};